package mutsumimod.powers;

import com.megacrit.cardcrawl.actions.common.GainBlockAction;
import com.megacrit.cardcrawl.core.AbstractCreature;
import mutsumimod.MutsumiMod;

public class GonnaLivePower extends BasePower {
    public static final String POWER_ID = MutsumiMod.makeID(GonnaLivePower.class.getSimpleName());

    public GonnaLivePower(AbstractCreature owner, int amount) {
        super(POWER_ID, PowerType.BUFF, false, owner,  amount);
    }

    @Override
    public void updateDescription() {
        this.description = DESCRIPTIONS[0] + this.amount + DESCRIPTIONS[1];
    }

    @Override
    public void onChangeStandAmount(int amount) {
        if (amount <= 0) {
            return;
        }
        this.flashWithoutSound();
        this.addToBot(new GainBlockAction(this.owner, this.amount * amount));
    }
}
